package edu.mse.camel.client.session.views;

import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class DefaultDialog extends Dialog {


	public DefaultDialog(Shell parentShell) {
		super(parentShell);		
		setShellStyle(getShellStyle() | SWT.RESIZE | SWT.MAX);
	}

	@Override
	protected Point getInitialSize() {
		return new Point(Display.getDefault().getBounds().width*3/5, 
						 Display.getDefault().getBounds().height*3/5);
		
	}

	@Override
	protected Point getInitialLocation(Point initialSize) {
		return new Point(Display.getDefault().getBounds().width/5, 
				Display.getDefault().getBounds().height/5);
	}


}
